-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hanan/activate validators #267
Conversation
✅ Deploy Preview for obol-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not super confident this is right from eyeballing, we should test it, and then if we're happy, merge :) (If you've already tested it then I guess my bad 😅 )
|
||
## Activate the DVs using the deposit contract | ||
|
||
This guide will in future cover activating the deposit data from a lock file. | ||
In order to activate cluster validator, the cluster operator can retrieve the validator associated deposit data and call deposit from the deposit contract. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In order to activate cluster validator, the cluster operator can retrieve the validator associated deposit data and call deposit from the deposit contract. | |
In order to activate the distributed validators, the cluster operator can retrieve the validators' associated deposit data from the lock file and use it to craft transactions to the `deposit()` method on the deposit contract. |
const principal = BigNumber.from(validatorDepositData.amount); // 32 ethers | ||
|
||
const TX_VALUE = principal.mul(WEI_FACTOR); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you tested this? I would have thought principal coming from our API ends up being "32000000000"
. So multiplying by a further 18 decimals leads to too many decimals and too high a value?
I would imagine we multiply by 10 ** 9
to get the outcome we want.
Here's a calculator to help test https://eth-converter.com/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right. Fixing it
@@ -13,7 +13,7 @@ import TabItem from '@theme/TabItem'; | |||
The Obol-SDK is in an alpha state and should be used with caution. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Obol-SDK is in an alpha state and should be used with caution. | |
The Obol-SDK is in an alpha state and should be used with caution, particularly on mainnet. |
Summary
Activate validators section.
Screenshots
ticket:
#266